<?php

App::uses('AppController', 'Controller');

class CertificationDetailsController extends AppController
{

    public function getOkByUserAndLineAndType($userId, $lineId, $type) {
        $this->request->allowMethod('get');
        $appBosch = new stdClass();
        if ($this->request->is('ajax') === true) {
            $appBosch->records = $this->CertificationDetail->getOkByUserAndLineAndType($userId, $lineId, $type);
        }
        $this->set('appBosch', $appBosch);
        $this->layout = 'empty';
    }
    
    public function getNokByUserAndLineAndType($userId, $lineId, $type) {
        $this->request->allowMethod('get');
        $appBosch = new stdClass();
        if ($this->request->is('ajax') === true) {
            $appBosch->records = $this->CertificationDetail->getNokByUserAndLineAndType($userId, $lineId, $type);
        }
        $this->set('appBosch', $appBosch);
        $this->layout = 'empty';
    }

}
